package cn.wolfcode.trip.base.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * 答题者domain
 */
@Getter
@Setter
public class Answer extends BaseDomain{
    //问题
    private Question question;
    //答题者
    private User respondent;
    //回答标题
    private String answerTitle;
    //回答内容
    private String answerContent;
    //回答时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date answerTime;
    //浏览数
    private Integer readNums =0;//默认值
    //答题数
    private Integer answerNums=0;


}